package cn.shujuhai.common.controller.operationLog;

import cn.dev33.satoken.annotation.SaCheckLogin;
import cn.shujuhai.common.pluging.data.ResultVo;
import cn.shujuhai.common.service.SysOperationLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@SaCheckLogin
@RequestMapping("/log")
public class SysOperationLogController {
    final SysOperationLogService sysOperationLogService;

    public SysOperationLogController(SysOperationLogService sysOperationLogService) {
        this.sysOperationLogService = sysOperationLogService;
    }

    @GetMapping("/list")
    public ResultVo<?> getLogList() {
        return this.sysOperationLogService.getLogList();
    }

}
